#ifndef COMMON_H
#define COMMON_H
#include <SDL/SDL.h>
#include <SDL/SDL_ttf.h>
#include <SDL/SDL_audio.h>
#include <stdlib.h>
#include <time.h>
#include <stdio.h>
#include <string.h>
#include <SDL/SDL_mixer.h>

int highscore(int rw,SDL_Surface *screen,char playername[],int points);
int click_button(SDL_Rect button,int x,int y);
int keyhandler(SDL_Rect obj[],SDL_Surface *screen,int *done,int *mode,int *autoaim,int *barspeed);    
void ki(SDL_Rect ball[],SDL_Rect obj[],SDL_Surface *screen,int *level,int *autoaim, int *mode);   
int checkcollision(SDL_Rect ball, SDL_Surface *screen,int xway[],int yway[],int *number,int *step);  
int singleplayer(SDL_Surface *screen, int mode,char playername[]);
void online(SDL_Surface *screen,int mode, char name[50]);
int server(SDL_Surface *screen,char name[50]);
int client(SDL_Surface *screen,char ip[20],char name[50]);
void chat(SDL_Surface *screen, int sock,char name[50]);
int menu(SDL_Surface *screen);
void options(int rw,int *sound,int *resolution);
void zeige_maus(void);
int options_menu(SDL_Surface *screen);
int randombox(SDL_Surface *screen,SDL_Rect box[],int *activebox,SDL_Rect obj[],SDL_Surface *barls,SDL_Surface *barrs, SDL_Surface *boxs, SDL_Rect field, int *killeractive,int *barspeed,int *maxballs);
void special(int activate,SDL_Rect obj[],SDL_Surface *barls,SDL_Surface *barrs,SDL_Surface *screen,int *killeractive,int *barspeed,int *maxballs);
void burn(SDL_Rect victim,SDL_Surface *screen);
void drawText(SDL_Surface *screen, SDL_Surface *back,TTF_Font *font,char* string,int x, int y, int fR, int fG, int fB);
void isomorph(SDL_Rect obj,SDL_Surface *screen,SDL_Surface *objs,int *killeractive,int *barspeed,int *maxballs,int *forceeffect);
void play (int mode);

#endif
